//
//  WZNetWorkStatusView.h
//  HappyChildren
//
//  Created by WillyZhao on 2016/12/19.
//  Copyright © 2016年 WillyZhao. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum {
    WZNetWorkStatusLoadingWithImage = 0,            //加载显示gif图片
    WZNetworkStatusLoadingWithOutImage,             //加载不显示gif图片
    WZNetWorkStatusLoadingError,                    //加载出错
    WZNetWorkStatusLoadingNoNet                     //无网络
}WZNetWorkStatusType;

typedef void(^failBlock)();

@interface WZNetWorkStatusView : UIView

@property (nonatomic, assign) WZNetWorkStatusType type;

@property (nonatomic, copy) NSString *msg;

@property (nonatomic, copy) NSString *subMsg;

@property (nonatomic, assign) CGFloat offSetY;

@property (nonatomic, assign) failBlock failClikBlock;
@property (weak, nonatomic) IBOutlet UIImageView *showImageView;
@property (weak, nonatomic) IBOutlet UILabel *msgLabel;
@property (weak, nonatomic) IBOutlet UILabel *subMsgLabel;
@property (weak, nonatomic) IBOutlet UIActivityIndicatorView *indor;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *offSetYContain;

+(instancetype)ViewWithType:(WZNetWorkStatusType)type msg:(NSString *)msg subMsg:(NSString *)subMsg offsetY:(CGFloat)offsetY failClickBlock:(failBlock)failClickBlock;

@end
